package com.dlu.safe_construction.common;


import com.dlu.safe_construction.model.Manager;

public class LoginContext {
    private final static ThreadLocal<Manager> requestManagerInfo = new ThreadLocal<>();

    public static void add(Manager manager) {
        requestManagerInfo.set(manager);
    }

    public static Manager getManager() {
        return requestManagerInfo.get();
    }

    public static void remove() {
        requestManagerInfo.remove();
    }
}
